export default {
  data() {
    return {
      orderId: ''
    }
  },
  
  computed: {
    serviceNumber(){
      return this.$store.state.serviceNumber
    }
  },

  onLoad(options) {
    this.orderId = options.orderId || ''
  },
  // 监听返回按钮 记得return true
  onBackPress(options) {
    if (options.from === 'backbutton') {
      this.fnbtnClick()
      return true
    }
  },
  methods: {
    //返回
    fnbtnClick() {
      uni.navigateBack({})
    },
    //跳转还款支付
    addpayClick() {
      // uni.navigateTo({
      //   url: '/pages_commodity/addRepaymentAccount/addRepaymentAccount'
      // })

      uni.switchTab({
        url: '/pages/index/index'
      })
    },
    chakanclick(){

    },
    kefu() {
      uni.makePhoneCall({
        phoneNumber: this.serviceNumber.number
      })
    },
  }
}
